home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / init.d / 03kernelmodules_jfs < prev    next >
Text File  |  2009-10-28  |  310b  |  21 lines

  1. #!/bin/sh
  2.  
  3. mkdir -p /var/lib/partman
  4.  
  5. cat /proc/modules |
  6. while read module_name x; do
  7.     if [ "$module_name" = jfs ]; then
  8.         >/var/lib/partman/jfs
  9.         exit 0
  10.     fi
  11. done
  12.  
  13. if modprobe jfs >/dev/null 2>/dev/null; then
  14.     >/var/lib/partman/jfs
  15.     exit 0
  16. fi
  17.  
  18. if grep -q jfs /proc/filesystems; then
  19.     >/var/lib/partman/jfs
  20. fi
  21.